package com.coisshi.base.module.oss.service;

import com.coisshi.base.common.exception.BizException;
import com.coisshi.base.module.oss.vo.OssPolicyResultVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * 通用云存储服务接口，支持多云厂商
 */
public interface CloudStorageService {
    OssPolicyResultVo getPolicy(String dirPrefix);
    String uploadFile(MultipartFile file, String objectName) throws BizException;
    String uploadFile(InputStream inputStream, String objectName) throws BizException;
    void deleteFile(String objectName) throws BizException;
} 